package com.lanp.springes.repository;

import com.lanp.springes.model.es.ProductEs;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface ProductEsRepository extends ElasticsearchRepository<ProductEs, Integer> {
    /**
     * 根据名称查询
     * @param productName
     * @param pageable
     * @return
     */
    Page<ProductEs> findByProductName(String productName, Pageable pageable);
}
